package com.zhaopin.springboot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @create 2021-04-19 17:08
 */
@Component
@ConfigurationProperties(prefix = "java")
public class Company {
    private String name;
    private String website;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    @Override
    public String toString() {
        return "{" +
                "name='" + name + '\'' +
                ", website='" + website + '\'' +
                '}';
    }
}
